function Loss   = v5_LossFunction(ParametersIn, RealMoments, MomentCovar)

SimMoments  = v5_Moments(ParametersIn);

Loss        = (RealMoments - SimMoments)' * inv(MomentCovar) * (RealMoments - SimMoments);

return
